package com.ft.scan.service;

import com.ft.scan.common.TextInResult;
import com.ft.scan.domain.File;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 用户Service接口
 *
 * @author wujie
 * {@code @date} 2024-01-30
 */

public interface ITextInService {
    /**
     * 调用接口
     *
     * @param imgData 图片的数组
     * @param userId
     * @return Result
     */
    TextInResult photo_to_word(byte[] imgData, Long userId);

    // 图片表格识别
    TextInResult photo_to_excel(byte[] imgData, Long userId);

    //证件识别
    TextInResult cert_classify(byte[] imgData);

    //提取信息
    TextInResult contents_extract(String base64File, String keys, String type);

    //书本扫描
    TextInResult scan_book(String[] images, String keys);


    //pdf转换word
    TextInResult pdfToWord(byte[] pdfData, Long userId);

    // pdf转换excel
    TextInResult pdfToExcel(byte[] pdfData, Long userId);

    // pdf转换ppt
    TextInResult pdfToPPT(byte[] pdfData, Long userId);

    // pdf转换jpg
    TextInResult pdfToJPG(byte[] pdfData, Long userId);

    // word转换pdf
    TextInResult wordToPDF(byte[] wordData, Long userId);

    TextInResult excelToPdf(byte[] pdfData, Long userId);

    TextInResult wordToImg(byte[] pdfData, Long userId);


    List<File> selectHistoryFile(Long userId);

    TextInResult photoToPdf(List<String> images, Long userId);

    int deleteHistoryFile(Long userId);
}
